<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/layui/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/layui/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="/layui/css/public.css" media="all">
</head>
<body>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-lg3">
                <div class="layui-row" style="width:260px;height: 150px;border-radius: 15px;background-color: white">
                    <div class="layui-col-lg12">
                        <div style="margin-left: 10px;margin-top: 10px;padding-top: 3px;background-color: #ff6666;width: 90px;height: 20px;border-radius: 25px;text-align: center">
                            <font style="font-size: 12px;color: white;font-weight: bold">媒体主总数量</font>
                        </div>
                    </div>
                    <div class="layui-col-lg12" style="text-align: center">
                        <div style="margin-top: 20px">
                            <font style="font-size: 40px;font-weight: bold;color: #ff6666">${mediaCount}</font>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-lg3">
                <div class="layui-row" style="width:260px;height: 150px;border-radius: 15px;background-color: white">
                    <div class="layui-col-lg12">
                        <div style="margin-left: 10px;margin-top: 10px;padding-top: 3px;background-color: #ffcc66;width: 90px;height: 20px;border-radius: 25px;text-align: center">
                            <font style="font-size: 12px;color: white;font-weight: bold">广告主总数量</font>
                        </div>
                    </div>
                    <div class="layui-col-lg12" style="text-align: center">
                        <div style="margin-top: 20px">
                            <font style="font-size: 40px;font-weight: bold;color: #ffcc66">${advertisersCount}</font>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-lg3">
                <div class="layui-row" style="width:260px;height: 150px;border-radius: 15px;background-color: white">
                    <div class="layui-col-lg12">
                        <div style="margin-left: 10px;margin-top: 10px;padding-top: 3px;background-color: #1aa094;width: 90px;height: 20px;border-radius: 25px;text-align: center">
                            <font style="font-size: 12px;color: white;font-weight: bold">资源总数量</font>
                        </div>
                    </div>
                    <div class="layui-col-lg12" style="text-align: center">
                        <div style="margin-top: 20px">
                            <font style="font-size: 40px;font-weight: bold;color: #1aa094">${mediaList}</font>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-lg3">
                <div class="layui-row" style="width:260px;height: 150px;border-radius: 15px;background-color: white">
                    <div class="layui-col-lg12">
                        <div style="margin-left: 10px;margin-top: 10px;padding-top: 3px;background-color: #00b7ee;width: 90px;height: 20px;border-radius: 25px;text-align: center">
                            <font style="font-size: 12px;color: white;font-weight: bold">活动总数量</font>
                        </div>
                    </div>
                    <div class="layui-col-lg12">
                        <!-- 活动总数量计数 -->
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row" style="margin-top: 20px;width:1120px;height: 500px;border-radius: 15px;background-color: white">
            <div class="layui-col-lg12">
                <div style="margin-left: 10px;margin-top: 10px;padding-top: 3px;">
                    <i class="layui-icon layui-icon-tree" style="font-size: 30px;"></i><font style="font-size: 20px;font-weight: bold">各渠道资源数量</font>
                </div>
            </div>
            <div class="layui-col-lg12">
                <div style="width: 1050px;margin-left: 35px;margin-top: 20px">
                    <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
                </div>
            </div>
        </div>
    </div>

    <script type="text/html" id="xuHao">
        {{d.LAY_TABLE_INDEX+1}}
    </script>

    <script src="/layui/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <script>
        layui.use('table',function (){
            var $ = layui.jquery,
                table = layui.table;

            table.render({
                elem: '#currentTableId',
                url: '/tagCount',
                method: 'post',
                cols: [[
                    {field: 'name',title: '渠道名称'},
                    {field: 'count',title: '资源数量'}
                ]]
            })

        })
    </script>
</body>
</html>
